#include"TaskPool.h"
#include<chrono>

int main()
{
    TaskPool threadpool;
    threadpool.init();

    Task*task =NULL;
    for(int i =0;i<10;i++)
    {
        task = new Task();
        threadpool.addTask(task);
    }

    std::this_thread::sleep_for(std::chrono::seconds(5));

    threadpool.stop();
    return 0;
}